﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseAlgoEngine
{
    class Program
    {
        static void Main(string[] args)
        {
            string strRes = "liupeng";
            string strPublicKey = "";
            string strPrivateKey = "";
            SecurityHelper.GenerateRSAKeys(out strPublicKey, out strPrivateKey);

            string strEnResult = SecurityHelper.RSAEncrypt(strPublicKey, strRes);
            string strDeResult = SecurityHelper.RSADecrypt(strPrivateKey, strEnResult);
        }
    }
}
